/*
 * Sender.h
 *
 *  Created on: Oct 2, 2012
 *      Author: Administrator
 */

#ifndef SENDER_H_
#define SENDER_H_

#include <FBase.h>
#include <FNet.h>
#include <FIo.h>
#include <FBaseRt.h>

#include "IShotSender.h"
#include "IShotStore.h"
#include "ShotSocketSender.h"
#include "ShotMemoryStore.h"

class Sender
	: public Osp::Base::Runtime::Thread
{

public:
	Sender();
	virtual ~Sender();
	Osp::Io::Directory* rootDir;

public:
	result Construct(void);
	virtual bool OnStart(void);
	virtual void OnStop(void);
	virtual void OnUserEventReceivedN(RequestId requestId, Osp::Base::Collection::IList *pArgs);
//	virtual Osp::Base::Object *  Run(void);

private:
	void SendFile(Osp::Base::String fileName);

public:
	void Test(void);



private:
	IShotSender* shotSender;
	IShotStore* shotStore;


	};

#endif /* SENDER_H_ */
